#include <stdio.h>

int main() {
    int y;
    int x;
    scanf("%d %d", &x, &y);
    if (x < 0) {
        y = 1;
    }
    if (x == 0) {
        y = 0;
    }if (x > 0) {
        y = -1;
    }
    printf("%d", y);
    return 0;
}